<?php

namespace App\Console;

use App\Console\Commands\ActivityJoinPushMessage;
use App\Console\Commands\ActivityPushMessage;
use App\Console\Commands\ActivityState;
use App\Console\Commands\Defang;
use App\Console\Commands\EmailByDay;
use App\Console\Commands\EmailByMonth;
use App\Console\Commands\EmailByWeek;
use App\Console\Commands\memberActive;
use App\Console\Commands\ProcessCheck;
use App\Console\Commands\PushTime;
use App\Console\Commands\TaskToExpire;
use App\Console\Commands\TaskToNew;
use App\Console\Commands\VoteState;
use App\Console\Commands\ImPushOffline;
use App\Console\Commands\Test;
use App\Console\Commands\Work;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        Test::class,
        Work::class,
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     *
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('work')->everyMinute();  //活动状态更新
    }

    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');

        require base_path('routes/console.php');
    }
}
